<template lang="html">
<div class="">
  Login Page
  <a href="#" @click="login">Login</a>
</div>
</template>

<script>
import { mapActions } from 'vuex';
import { DEMO_ACTION } from 'actionTypes';

export default {

  methods: {
    ...mapActions({
      demoAction: DEMO_ACTION
    }),

    login() {
      this.demoAction({
        testPayload: 'Hello'
      });
    }
  }

};
</script>
